package com.meiyou.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.meiyou.mapper.MeiyouThirMapper;
import com.meiyou.pojo.MeiyouThir;
import com.meiyou.pojo.MeiyouThirExample;
import com.meiyou.service.ThirdService;

@Service
public class ThirdServiceImpl implements ThirdService {
	@Resource
	MeiyouThirMapper meiyouThirMapper;

	
	public int insThird(MeiyouThir meiyouThir) {
		return meiyouThirMapper.insert(meiyouThir);
	}

	
	public List<MeiyouThir> selThird(String tUCount) {

		MeiyouThirExample example = new MeiyouThirExample();
		if (tUCount != null) {
			example.createCriteria().andTUCountEqualTo(tUCount);
		}
		return meiyouThirMapper.selectByExample(example);
	}

	
	public int updThird(MeiyouThir meiyouThir) {
		return meiyouThirMapper.updateByPrimaryKey(meiyouThir);
	}
	

	
	public int insThirdSelective(MeiyouThir meiyouThir) {
		// TODO Auto-generated method stub
		return meiyouThirMapper.insertSelective(meiyouThir);
		
	}

	
	public String selUcountByZfb(String zfb) {
		// TODO Auto-generated method stub
		
		return meiyouThirMapper.selectUcountByZfb(zfb);
	}

}
